#pragma once

typedef int ssize_t;

// expose the build type
#define BUILD_DEBUG "debug"

// the version, updated on release
#define SCRCPY_VERSION "1.0"

// the prefix used during configuration (meson --prefix=PREFIX)
#define PREFIX "PREFIX"

// build a "portable" version (with scrcpy-server.jar accessible from the same
// directory as the executable)
#define  PORTABLE 0

// the default client TCP port for the "adb reverse" tunnel
// overridden by option --port
#define DEFAULT_LOCAL_PORT 27183 

// the default max video size for both dimensions, in pixels
// overridden by option --max-size
#define DEFAULT_MAX_SIZE 0 // 0: unlimited

// the default video bitrate, in bits/second
// overridden by option --bit-rate
#define DEFAULT_BIT_RATE 8000000 

// enable High DPI support
#define HIDPI_SUPPORT 1

// disable console on Windows
#define WINDOWS_NOCONSOLE 0

#ifndef  _MSC_VER
	#define MSG_WAITALL 0
	#define ERROR_FILE_NOT_FOUND 0
#endif //  _MSC_VER